package com.smart.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.smart.consts.LeadStatus;

/**
 * 
 * @author Sunxin
 *
 */

@Entity 
@Table(name = "lead")
public class Lead extends BaseEntity<Lead>{
	private static final long serialVersionUID = 1L;
	
	private String team;
	
	private String mobile;
	
	private String wechat;
	
	private String wechatName;
	
	private String crtUserName;
	
	@ManyToOne
	@JoinColumn(name = "sales_user_id")
	private User salesUser;
	
	@ManyToOne
	@JoinColumn(name = "op_user_id")
	private User opUser;
	
	private String lastComment;
	
	private String allComment;
	
	@Enumerated(EnumType.STRING)
	private LeadStatus status;
	
	/**
	 * 分配时间
	 */
	private Date distTime;

	public String getTeam() {
		return team;
	}

	public void setTeam(String team) {
		this.team = team;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getWechat() {
		return wechat;
	}

	public void setWechat(String wechat) {
		this.wechat = wechat;
	}

	public String getCrtUserName() {
		return crtUserName;
	}

	public void setCrtUserName(String crtUserName) {
		this.crtUserName = crtUserName;
	}

	public User getSalesUser() {
		return salesUser;
	}

	public void setSalesUser(User salesUser) {
		this.salesUser = salesUser;
	}

	public User getOpUser() {
		return opUser;
	}

	public void setOpUser(User opUser) {
		this.opUser = opUser;
	}

	public LeadStatus getStatus() {
		return status;
	}

	public void setStatus(LeadStatus status) {
		this.status = status;
	}

	public String getLastComment() {
		return lastComment;
	}

	public void setLastComment(String lastComment) {
		this.lastComment = lastComment;
	}

	public String getAllComment() {
		return allComment;
	}

	public void setAllComment(String allComment) {
		this.allComment = allComment;
	}

	public String getWechatName() {
		return wechatName;
	}

	public void setWechatName(String wechatName) {
		this.wechatName = wechatName;
	}

	public Date getDistTime() {
		return distTime;
	}

	public void setDistTime(Date distTime) {
		this.distTime = distTime;
	}
	
}
